import 'package:flutter/material.dart';

class TextSpanDemo extends StatelessWidget {
  const TextSpanDemo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TextSpan文本片段
    return Text.rich(TextSpan(children: [
      TextSpan(text: 'Home：'),
      TextSpan(
        text: 'xxxx',
        style: TextStyle(color: Colors.blue),
      ),
    ]));
  }
}
